<?php
    require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
    require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'check_admin_login.php';
    require_once DOCUMENT_ROOT . DIR_INCLUDE . 'html_generator.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_industry.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_users.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_affiliate.php';
    require_once DOCUMENT_ROOT . DIR_SHARED_LIBRARIES . 'lib_redirect.php';
    $title = 'Admin Panel';
    $success = NULL;
    $error = NULL;

    

?>

<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->

<html>
<head>
    <?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'head.php' ?>
    <script type="text/javascript">
        var affiliateApprove = new AffiliateApprove(
            "<?php echo LINK_ROOT . DIR_AJAX; ?>approve_affiliate_form.php",
            "<?php echo LINK_ROOT . DIR_AJAX; ?>delete_affiliate_form.php",
            "<?php echo LINK_ROOT . DIR_AJAX; ?>load_list_affiliate_approve_form.php",
            "<?php echo LINK_ROOT . DIR_AJAX; ?>load_modal_affiliate_form.php",
            "approve_form_list",
            "affiliate_form_view");
        $(document).ready(function() {
            affiliateApprove.loadFormList();
        });
    </script>
</head>
<body>
<?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'header.php' ?>

<!-- Title -->
<div class="section section-black">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="calltoaction-wrapper">
                    <h3>Affiliate Approve</h3>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- End Title -->


<div class="ts-wrapper">

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">Affiliate Form</h4>
      </div>
      <div class="modal-body" id="affiliate_form_view">
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>
<!-- End Model -->
    
    <!-- Affiliate Approve Table -->
    <div class="section">
        <div class="container">
    <?php show_message($success, $error, 1, 10); ?>
            <div class="row" id="approve_form_list"></div>
        </div>
    </div>
    <!-- End Section Table -->
</div>

<?php require_once DOCUMENT_ROOT . DIR_ADMIN_INCLUDE . 'footer.php' ?>
</body>
</html>